{if sizeof($WEB_APP.paginator->get_pages_array()) neq 1}
	<div class = "pages">
		{foreach from = $WEB_APP.paginator->get_pages_array() item = item name = paginator}
			{if $smarty.foreach.paginator.last}
				{if $WEB_APP.paginator->current_page eq $item}
					<span class = "current">{$WEB_APP.paginator->current_page}</span>
					<span class = "nextprev">{$text.txt_next} &#187;</span>
				{else}
					<a href = "{$WEB_APP.paginator->get_url_page($item)}" title = "{$text.txt_go_to_page} {$item}">{$item}</a>
					<a href = "{$WEB_APP.paginator->get_url_page($WEB_APP.paginator->get_next_page())}" class = "nextprev" title = "{$text.txt_go_to_next_page}">{$text.txt_next} &#187;</a>
				{/if}
			{elseif $item eq 1}
				{if $WEB_APP.paginator->current_page eq 1}
					<span class = "nextprev">&#171; {$text.txt_previous}</span>
					<span class = "current">1</span>
				{else}
					{if $WEB_APP.paginator->current_page eq 2}
						<a href = "{$WEB_APP.paginator->get_url_page(1)}" class = "nextprev" title = "{$text.txt_go_to_previous_page}">&#171; {$text.txt_previous}</a>
					{else}
						<a href = "{$WEB_APP.paginator->get_url_page($WEB_APP.paginator->get_previous_page())}" class = "nextprev" title = "{$text.txt_go_to_previous_page}">&#171; {$text.txt_previous}</a>
					{/if}
					<a href = "{$WEB_APP.paginator->get_url_page(1)}" title = "{$text.txt_go_to_page} 1">1</a>
				{/if}
			{elseif $item eq 0}
				<span>&#8230;</span>
			{else} 
				{if $WEB_APP.paginator->current_page eq $item}
					<span class = "current">{$item}</span>
				{else}
					<a href = "{$WEB_APP.paginator->get_url_page($item)}" title = "{$text.txt_go_to_page} {$item}">{$item}</a>
				{/if}
			{/if}
		{/foreach}
	</div>
{/if}
